# eric7.Plugins.VcsPlugins.vcsMercurial.UncommitExtension.ProjectHelper

Module implementing the uncommit extension project helper.

### Global Attributes

None

### Classes

UncommitProjectHelper | Class implementing the uncommit extension project helper.

### Functions

None

## UncommitProjectHelper

Class implementing the uncommit extension project helper.

### Derived from

HgExtensionProjectHelper

### Class Attributes

None

### Class Methods

None

### Methods

UncommitProjectHelper | Constructor
__hgUncommit | Private slot to undo a local commit.
__reopenProject | Private method to reopen the project if needed and wanted.
initActions | Public method to generate the action objects.
initMenu | Public method to generate the extension menu.
menuTitle | Public method to get the menu title.

### Static Methods

None

#### UncommitProjectHelper (Constructor)

UncommitProjectHelper()

Constructor

#### UncommitProjectHelper.__hgUncommit

__hgUncommit()

Private slot to undo a local commit.

#### UncommitProjectHelper.__reopenProject

__reopenProject(shouldReopen, title)

Private method to reopen the project if needed and wanted.

shouldReopen (bool)
  flag indicating that the project should be reopened
title (str)
  title of the message box

#### UncommitProjectHelper.initActions

initActions()

Public method to generate the action objects.

#### UncommitProjectHelper.initMenu

initMenu(mainMenu)

Public method to generate the extension menu.

mainMenu (QMenu)
  reference to the main menu

Return:
  populated menu

Return Type:
  QMenu

#### UncommitProjectHelper.menuTitle

menuTitle()

Public method to get the menu title.

Return:
  title of the menu

Return Type:
  str

Up